<div id="loginbox" class="mainbox col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2">
    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">找回密码</div>
        </div>

        <div class="panel-body">
            <?php if ($error) { ?>
                <div class="alert alert-danger">
                    <p><?php echo $error; ?></p>
                </div>
            <?php } ?>

            <?php if ($this->session->flashdata('ERROR')) { ?>
                <div class="alert alert-danger">
                    <i class="fa fa-exclamation"></i> <?php echo $this->session->flashdata('ERROR'); ?>
                </div>
            <?php } ?>
            <?php if ($this->session->flashdata('SUCCESS')) { ?>
                <div class="alert alert-success">
                    <?php echo $this->session->flashdata('SUCCESS'); ?>
                </div>
            <?php } ?>

            <?php echo form_open('', 'id="loginform" role="form"'); ?>
            <?php $user_error = form_error('user_email'); ?>
            <div class="form-group <?php echo $user_error ? 'has-error' : ''; ?>">
                <div class="input-group">
                    <span class="input-group-addon"><i class="fa fa-user"></i></span>
                    <input id="user_email" type="text" class="form-control input-sm" name="user_email"
                           value="<?php echo set_value('user_email'); ?>"
                           placeholder="输入你的电子邮箱">
                </div>
                <?php if ($user_error) { ?>
                    <p class="help-block"><?php echo $user_error; ?></p>
                <?php } ?>
            </div>

            


            <div class="form-group text-center">
                <button class="btn btn-success btn-sm" type="submit">
                    <i class="fa fa-sign-in"></i>
                    找回密码
                </button>
            </div>


            <?php echo form_close(); ?>
        </div>
    </div>
</div>
